<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main_layout extends CI_Controller
{
    public function __construct()
    {        
        parent::__construct();
        $this->load->helper('url');
        $this->load->library('my_layout');
        $this->load->library('form_validation');
        $this->my_layout->setLayout('layout/main');
        // $this->my_layout->setLayout('frontend/login');
    }

    function index()
    {
        $this->my_layout->view('frontend/home');
    }

    public function contact()
    {
        $data['title'] = "Contact me follow: 0968105812";
        $this->my_layout->view('frontend/contact', $data);
    }

    public function category()
    {
        $data['title'] = "Category of products";
        $this->my_layout->view('frontend/category', $data);
    }
    
}